package com.meilai.project.dto.business.sale;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.dto.base.PageReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * @author xchen
 * @since 2022-01-23
 */
@Data
@ApiModel
public class SaleBillListDTO extends PageReq {

    @ApiModelProperty(value = "是否排除已经被锁位关联的销售单，默认false")
    private Boolean excludeHasIntentionScheme = false;

    @ApiModelProperty("甲方名称")
    private String part_a;

    @ApiModelProperty(value = "填表日期开始")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate fill_date_begin;

    @ApiModelProperty(value = "填表日期结束")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate fill_date_end;

    @ApiModelProperty(value = "分公司id")
    private Long dept_id;

    @ApiModelProperty(value = "投放开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate contractBeginDate;

    @ApiModelProperty(value = "投放结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate contractEndDate;

    @ApiModelProperty(value = "manager")
    private boolean manager;

    @ApiModelProperty(value = "不传", hidden = true)
    private Long userId;

    @ApiModelProperty(value = "项目名称")
    private String customer_name;

    @ApiModelProperty("状态，0：无状态，1：挂起, 2:作废")
    private Integer mode;

    @ApiModelProperty("合同编号")
    private String contract_num;

    @ApiModelProperty("类型")
    private Integer type;

    @ApiModelProperty("客户id")
    private Long customer_id;

    @ApiModelProperty("分组id")
    private Long group_id;
}
